function main(value) {
    return new Promise((resolve, reject) => {
        // 新增表单 form_part_f4cph8
        let fromPart = this.$$("form_part_2wsirj") || this.$$("form_part_f4cph8")
        let documentNo = fromPart.$$getRenderElement().getDocumentNo();
        let cardIdTestValue = this.$$("text_input_4lj7jw").$$getValue();        // 传入的
        let cardId = this.$$("text_input_762mdg").$$getValue();

        if (!value || value === "")
            return { success: true }

        const params = [{
            name: "identityNo",
            valueContent: value
        }];

        //b3a3f27e-3141-4036-8e5f-9d6d335bba7f
        api.DATA_SOURCE_EXECUTE("b3a3f27e-3141-4036-8e5f-9d6d335bba7f", "ddcat", params, [], "").then(res => {
            let params = {};
            if (documentNo && cardIdTestValue === cardId) {
                res.result[0].count = -1
            }
            console.log(res);

            if (parseInt(res.result[0].count) > 0)
                params = { success: false };
            else
                params = { success: true };
            resolve(params);
        }).catch(err => {
            reject(err);
        });
    });

}